<script setup>
import { ref } from "vue";
const count = ref(0);
</script>

<template>
  <div>
    <h2>子组件1</h2>
    <span>count:{{ count }}</span>
    <button @click="count++">+</button>
  </div>
</template>
